]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: only ignore 'chat' and 'presence' notifications from Empathy...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 29 Mar 2011 08:04:47 +0000 (10:04 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 1 Apr 2011 22:05:10 +0000 (00:05 +0200)
js/ui/notificationDaemon.js

index d2a50d0e3bcbe9188a0c8c950ca2832b8eb929d6..d82dd35717203b8580844a44bbfad5ee94633dee 100644 (file)
@@ -189,9 +189,11 @@ NotificationDaemon.prototype = {
                      actions, hints, timeout) {
         let id;
 
-        // Filter out notifications from Empathy, since we
+        // Filter out chat and presence notifications from Empathy, since we
         // handle that information from telepathyClient.js
-        if (appName == 'Empathy') {
+        if (appName == 'Empathy' && (hints['category'] == 'im.received' ||
+              hints['category'] == 'presence.online' ||
+              hints['category'] == 'presence.offline')) {
             // Ignore replacesId since we already sent back a
             // NotificationClosed for that id.
             id = nextNotificationId++;